#define MIN(a, b) ((a)>(b)?(b):(a))
